package com.ghpt.service.impl;
import com.ghpt.mapper.TanBuJiMapper;
import com.ghpt.pojo.TanBuJi;
import com.ghpt.service.TanBuJiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TanBuJiServiceImpl implements TanBuJiService {
    @Autowired
    private TanBuJiMapper tanBuJiMapper;

    @Override
    public TanBuJi findTanBuJiById(Long id) {
        if (id != null) {
            return tanBuJiMapper.selectById(id);
        }else {
            return null;
        }
    }
    @Override
    public int updateById(TanBuJi tanBuJi) {
        return tanBuJiMapper.updateById(tanBuJi);//更新成功为1否则为0
    }
}
